package com.example.car.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document("user_role")
public class UserRole {

    @Id
    private String id;

    @Field("user_id")
    private String userId;

    @Field("role_id")
    private String roleId;

}
